package stack

import org.springframework.cloud.contract.spec.Contract

Contract.make {
    request {
        method("GET")
        url("/api/v3/stacks/1/status")
    }
    response {
        status(200)
        body("""
            {
                "status":"fdfsd",
                "id":1
            }
        """)
        bodyMatchers {
            jsonPath('$.status', byRegex("[\\s\\S]+"))
            jsonPath('$.id', byRegex(number()))
        }
    }
}
